<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : CadastrarContaReceberAssociado
    Created on : 11/03/2009, 14:38:55
    Author     : Jaime Junior
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./resources/camposDesabilitados.css" id="outputStyle3"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <script>
                   function hidden(){
                    document.body.style.overflow='hidden';
                   }
                   function mascara(o,f){
                    v_obj=o;
                    v_fun=f;
                    setTimeout("execmascara()",1);
                   }
                   /* Função para executar a mascara */
                   function execmascara(){
                    v_obj.value=v_fun(v_obj.value);
                   }
                   function mvalor(v){
                    v=v.replace(/\D/g,"");//Remove tudo o que não é dígito
                    v=v.replace(/(\d)(\d{2})$/,"$1.$2");//coloca a virgula antes dos 2 últimos dígitos
                    return v;
                   }
                </script>
                <title>Contas a Receber Associado </title>
            </ice:outputHead>
            <body onload="hidden();">
                <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                    <ice:form id="form1">
                        <ice:panelPopup autoCentre="true" binding="#{Financeiro$CadastrarContaReceberAssociado.painelSair}" draggable="false" id="painelSair"
                            modal="true" rendered="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean.showDraggablePanel}"
                            style="height: 210px; left: 216px; right: 200px; top: 336px; bottom: 200px; position: absolute; width: 405px" visible="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelSairCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgSairTitulo" value="Sair"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelSairCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgSairPainel"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Tem certeza que deseja sair dessa tela?"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoSairSim_action}" id="botaoSairSim"
                                        image="/resources/botaoSim.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 55%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoSairNao_action}" id="botaoSairNao"
                                        image="/resources/botaoNao.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 55%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelPopup autoCentre="true" binding="#{Financeiro$CadastrarContaReceberAssociado.painelConsulta}" draggable="false"
                            id="painelConsulta" modal="true" rendered="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean1.showDraggablePanel}"
                            style="height: 210px; left: 792px; top: 456px; position: absolute; width: 405px" visible="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean1.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelConsultaCabecalho" style="display: block; height: 30px;" width="360px">
                                    <ice:outputText id="msgPainelConsulta" value="Consulta Despesa"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelConsultaCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgConsultaTitulo"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 41px; left: 0px; top: 0px; position: absolute; text-align: center; width: 382px" value="Selecione o Associado e a Data  Despesa:"/>
                                    <ice:outputText id="labelConsultaAssociado"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 24px; top: 48px; position: absolute; text-align: right; width: 117px" value="Associado:"/>
                                    <ice:outputText id="labelConsultaDataDespesa"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 0px; top: 72px; position: absolute; text-align: right; width: 141px" value="Data Despesa:"/>
                                    <ice:selectOneMenu binding="#{Financeiro$CadastrarContaReceberAssociado.comboConsultaAssociado}" id="comboConsultaAssociado"
                                        immediate="true" partialSubmit="true"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 142px; top: 46px; position: absolute; width: 230px"
                                        value="#{Financeiro$CadastrarContaReceberAssociado.consultaAssociadoSelecionado.selectedObject}" valueChangeListener="#{Financeiro$CadastrarContaReceberAssociado.comboConsultaAssociado_processValueChange}">
                                        <f:selectItems id="selectOneMenu1selectItems1" value="#{Financeiro$CadastrarContaReceberAssociado.consultaAssociados}"/>
                                    </ice:selectOneMenu>
                                    <ice:selectOneMenu binding="#{Financeiro$CadastrarContaReceberAssociado.comboConsultaConta}" id="comboConsultaConta"
                                        partialSubmit="true"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 142px; top: 70px; position: absolute; width: 230px" value="#{Financeiro$CadastrarContaReceberAssociado.consultaContaSelecionada.selectedObject}">
                                        <f:selectItems id="selectOneMenu1selectItems2" value="#{Financeiro$CadastrarContaReceberAssociado.consultaContas}"/>
                                    </ice:selectOneMenu>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoConsultaCancelar_action}"
                                        id="botaoConsultaCancelar" image="/resources/botaoCancelar.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 25%; top: 65%; position: absolute" value="Cancelar"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoConsultaOk_action}" id="botaoConsultaOk"
                                        image="/resources/botaoOk.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 25%; top: 65%; position: absolute" value="OK"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelPopup autoCentre="true" binding="#{Financeiro$CadastrarContaReceberAssociado.painelAviso}" draggable="false" id="painelAviso"
                            modal="true" rendered="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean2.showDraggablePanel}"
                            style="height: 210px; left: 216px; top: 384px; position: absolute; width: 405px" visible="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean2.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelAvisoCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgPainelAviso" value="Aviso"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelAvisoCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgAvisoResultado"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Não houve resultado "/>
                                    <ice:outputText id="msgAvisoPergunta"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 72px; position: absolute; text-align: center; width: 357px" value="Deseja fazer outra consulta?"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoAvisoSim_action}" id="botaoAvisoSim"
                                        image="/resources/botaoSim.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 65%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoAvisoNao_action}" id="botaoAvisoNao"
                                        image="/resources/botaoNao.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 65%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelPopup autoCentre="true" binding="#{Financeiro$CadastrarContaReceberAssociado.painelMensagem}" draggable="false"
                            id="painelMensagem" modal="true" rendered="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean3.showDraggablePanel}"
                            style="height: 210px; left: 216px; top: 408px; position: absolute; width: 405px" visible="#{Financeiro$CadastrarContaReceberAssociado.panelPopup1Bean3.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelMensagemCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgPainelMensagem" value="Atenção"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelMensagemCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{Financeiro$CadastrarContaReceberAssociado.msgMensagemResultado}" id="msgMensagemResultado"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Operação Efetuada Com Sucesso"/>
                                    <ice:outputText id="msgMensagemOperacao" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 72px; position: absolute; text-align: center; width: 357px"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoMensagemOk_action}" id="botaoMensagemOk"
                                        image="/resources/botaoOk.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 45%; top: 70%; position: absolute" value="Ok"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelGroup id="painelGeral" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px">
                            <ice:graphicImage id="imagemFundo" value="/resources/telaDespesas.jpg"/>
                            <ice:panelLayout id="painelConteudo" layout="flow" style="font-family: 'Courier New',Courier,monospace; font-size: 14px; height: 620px; left: 2%; top: 12%; position: absolute; width: 980px; -rave-layout: grid">
                                <ice:outputText id="associado"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 120px; position: absolute; text-align: right; width: 190px" value="Associado:"/>
                                <ice:outputText id="tipoDespesa"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; height: 22px; left: 96px; top: 144px; position: absolute; text-align: right; width: 190px" value="Tipo de Despesa:"/>
                                <ice:outputText id="valorDespesa"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 168px; position: absolute; text-align: right; width: 190px" value="Valor da Despesa:"/>
                                <ice:outputText id="valorTotal"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 192px; position: absolute; text-align: right; width: 190px" value="Valor Pago:"/>
                                <ice:outputText id="dataConta"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 96px; top: 96px; position: absolute; text-align: right; width: 190px" value="Data:"/>
                                <ice:selectInputDate binding="#{Financeiro$CadastrarContaReceberAssociado.campoDataDespesa}" id="campoDataDespesa"
                                    immediate="true" inputTitle="Insira a Data da Despesa." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; height: 21px; left: 286px; top: 96px; position: absolute; width: 200px" value="#{Financeiro$CadastrarContaReceberAssociado.dataPagamentoSelecionada.date1}"/>
                                <ice:selectOneMenu binding="#{Financeiro$CadastrarContaReceberAssociado.comboAssociado}" id="comboAssociado" immediate="true"
                                    partialSubmit="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 286px; top: 120px; position: absolute; width: 200px"
                                    title="Selecione um Associado." value="#{Financeiro$CadastrarContaReceberAssociado.associadoSelecionado.selectedObject}" valueChangeListener="#{Financeiro$CadastrarContaReceberAssociado.comboAssociado_processValueChange}">
                                    <f:selectItems id="selectOneMenu1selectItems" value="#{Financeiro$CadastrarContaReceberAssociado.associados}"/>
                                </ice:selectOneMenu>
                                <ice:inputText binding="#{Financeiro$CadastrarContaReceberAssociado.campoTipoDespesa}" id="campoTipoDespesa" immediate="true"
                                    maxlength="50" partialSubmit="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 286px; top: 144px; position: absolute; width: 200px"
                                    title="Insira o Tipo de Despesa. Ex: Empréstimo" value="#{ContaReceberAssociado.descricao}"/>
                                <ice:inputText binding="#{Financeiro$CadastrarContaReceberAssociado.campoValorDespesa}"
                                    converter="#{Financeiro$CadastrarContaReceberAssociado.doubleConverter1}" id="campoValorDespesa" immediate="true"
                                    maxlength="10" onkeypress="mascara(this,mvalor);" partialSubmit="true" required="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 286px; top: 168px; position: absolute; width: 200px"
                                    title="Insira o Valor da Despesa. Ex: R$ 50,00" value="#{ContaReceberAssociado.valorTotal}"/>
                                <ice:inputText binding="#{Financeiro$CadastrarContaReceberAssociado.campoValorPago}"
                                    converter="#{Financeiro$CadastrarContaReceberAssociado.doubleConverter1}" id="campoValorPago" immediate="true"
                                    maxlength="10" partialSubmit="true" required="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 286px; top: 192px; position: absolute; width: 200px"
                                    title="Insira o Valor da Despesa. Ex: R$ 50,00" value="#{ContaReceberAssociado.valorPago}"/>
                                <ice:panelLayout id="painelOpcoes" layout="flow" style="height: 46px; left: 0px; top: 0px; position: absolute; width: 980px; -rave-layout: grid">
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoNovo_action}" alt="Novo" id="botaoNovo"
                                        image="/resources/botaoNovo.png" style="height: 45px; left: 168px; top: 0px; position: absolute; width: 64px"
                                        title="Novo" value="Novo"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoConsultar_action}" alt="Consultar"
                                        id="botaoConsultar" image="/resources/botaoConsultar.png" immediate="true" partialSubmit="true"
                                        style="height: 45px; left: 240px; top: 0px; position: absolute; width: 64px" title="Consultar" value="Consultar"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoAlterar_action}" alt="Alterar" id="botaoAlterar"
                                        image="/resources/botaoAlterar.png" style="height: 45px; left: 312px; top: 0px; position: absolute; width: 64px"
                                        title="Alterar" value="Alterar"/>
                                    <ice:commandButton alt="Imprimir" id="botaoImprimir" image="/resources/botaoImprimir.png"
                                        style="height: 45px; left: 386px; top: 0px; position: absolute; width: 64px" title="Imprimir" value="Imprimir"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoCadastrar1_action}" alt="Salvar"
                                        id="botaoCadastrar1" image="/resources/botaoSalvar.png"
                                        style="height: 45px; left: 456px; top: 0px; position: absolute; width: 64px" title="Salvar/Cadastrar" value="Cadastrar"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoLimpar_action}" alt="Limpar" id="botaoLimpar"
                                        image="/resources/botaoLimpar.png" style="height: 45px; left: 528px; top: 0px; position: absolute; width: 64px"
                                        title="Limpar Campos" value="Limpar"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.botaoSair_action}" alt="Sair" id="botaoSair"
                                        image="/resources/botaoSair.png" immediate="true" partialSubmit="true"
                                        style="height: 45px; left: 912px; top: 0px; position: absolute; width: 64px" title="Sair" value="Sair"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarContaReceberAssociado.button1_action}"
                                        binding="#{Financeiro$CadastrarContaReceberAssociado.button1}" id="button1" image="/resources/bt%20Excluir.jpg"
                                        style="height: 45px; left: 600px; top: 0px; position: absolute; width: 64px" value="Excluir"/>
                                </ice:panelLayout>
                            </ice:panelLayout>
                        </ice:panelGroup>
                    </ice:form>
                </ice:outputBody>
            </body>
        </ice:outputHtml>
    </f:view>
</jsp:root>
